﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Web_App___AWS_ELB_Monitor.Web;

namespace Web_App___AWS_ELB_Monitor.Models.ELB
{
    public class ELBMonitorViewModel
    {
        public bool AutoRefresh { get; set; }
        public bool Randomise { get; set; }
        public ELBMonitorDataViewModel Data { get; set; }

        public ELBMonitorViewModel()
        {
            //default values
            AutoRefresh = true;
        }

        public IHtmlString FrontEndGraphData
        {
            get
            {
                return new NonEncodedHtmlString
                           {
                               Value =  Data.RequestChartDataTY1W2W.ToJson()
                           };
            }

        }

        public IHtmlString FrontEndCPUData
        {
            get
            {
                return new NonEncodedHtmlString
                {
                    Value = Data.InstanceCPUDataCurrent.ToJSon()
                };
            }
        }


        
    }
}